<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>emp-toolkit: /Users/wangxiao/git/emp-toolkit/emp-tool/circuits/circuit_file.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo-full-doxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">emp-toolkit
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('circuit__file_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">circuit_file.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="circuit__file_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef CIRCUIT_FILE</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define CIRCUIT_FILE</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;</div><div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="circuit__file_8h.html#a50994791b2cee95e74e65a30ad29dfb1">    4</a></span>&#160;<span class="preprocessor">#define AND_GATE 0</span></div><div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="circuit__file_8h.html#a09981b2d912d56374a48b1c810317b31">    5</a></span>&#160;<span class="preprocessor">#define XOR_GATE 1</span></div><div class="line"><a name="l00006"></a><span class="lineno"><a class="line" href="circuit__file_8h.html#ae656db884251f676e0fb6adcd7ed45f0">    6</a></span>&#160;<span class="preprocessor">#define NOT_GATE 2</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="garble__circuit_8h.html">garble_circuit.h</a>&quot;</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="backend_8h.html">backend.h</a>&quot;</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#include &lt;stdio.h&gt;</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &quot;block.h&quot;</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="bit_8h.html">bit.h</a>&quot;</span></div><div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="class_circuit_file.html">   12</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_circuit_file.html">CircuitFile</a> { <span class="keyword">public</span>:</div><div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">   13</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_circuit_file.html#a10b5634a0bf348c6e7abd49f866b43b6">num_gate</a>, <a class="code" href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">num_wire</a>, <a class="code" href="class_circuit_file.html#ac41e7dc99ea23f0ef45bf2181850bd2e">n1</a>, <a class="code" href="class_circuit_file.html#a7a98a288b190df500d51a43c46c14e70">n2</a>, <a class="code" href="class_circuit_file.html#ab38c383422b8a9948ce66d45721db41f">n3</a>;</div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_circuit_file.html#a7f15c2315f0af71b0cb040a655ce2ee2">   14</a></span>&#160;    <span class="keywordtype">int</span> *<a class="code" href="class_circuit_file.html#a7f15c2315f0af71b0cb040a655ce2ee2">gates</a>;</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_circuit_file.html#a51b27ff92a688dee9dc1dc787d3c36a9">   15</a></span>&#160;    <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * <a class="code" href="class_circuit_file.html#a51b27ff92a688dee9dc1dc787d3c36a9">wires</a>;</div><div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_circuit_file.html#ac5f7775c1c30510261f6b8244f2bcb55">   16</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_circuit_file.html#a7ac52fd2934e5e70342762929492ba74">tmp</a>, <a class="code" href="class_circuit_file.html#ac5f7775c1c30510261f6b8244f2bcb55">tmp2</a>;</div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="class_circuit_file.html#a9531355f85784d3cb07621619db1a25e">   17</a></span>&#160;    <a class="code" href="class_circuit_file.html#a9531355f85784d3cb07621619db1a25e">CircuitFile</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> * file) {</div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;        FILE * f = fopen(file, <span class="stringliteral">&quot;r&quot;</span>);</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;        tmp2=fscanf(f, <span class="stringliteral">&quot;%d%d\n&quot;</span>, &amp;num_gate, &amp;num_wire);</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;        tmp2=fscanf(f, <span class="stringliteral">&quot;%d%d%d\n&quot;</span>, &amp;n1, &amp;n2, &amp;n3);</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;        tmp2=fscanf(f, <span class="stringliteral">&quot;\n&quot;</span>);</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;        <span class="keywordtype">char</span> str[10];</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;        gates = <span class="keyword">new</span> <span class="keywordtype">int</span>[num_gate*4];</div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;        wires = <span class="keyword">new</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>[<a class="code" href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">num_wire</a>];</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="class_circuit_file.html#a10b5634a0bf348c6e7abd49f866b43b6">num_gate</a>; ++i) {</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;            tmp2=fscanf(f, <span class="stringliteral">&quot;%d&quot;</span>, &amp;tmp);</div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;            <span class="keywordflow">if</span> (tmp == 2) {</div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;                tmp2=fscanf(f, <span class="stringliteral">&quot;%d%d%d%d%s&quot;</span>, &amp;tmp, &amp;gates[4*i], &amp;gates[4*i+1], &amp;gates[4*i+2], str);</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;                <span class="keywordflow">if</span> (str[0] == <span class="charliteral">&#39;A&#39;</span>) gates[4*i+3] = <a class="code" href="circuit__file_8h.html#a50994791b2cee95e74e65a30ad29dfb1">AND_GATE</a>;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;                <span class="keywordflow">else</span> <span class="keywordflow">if</span> (str[0] == <span class="charliteral">&#39;X&#39;</span>) gates[4*i+3] = <a class="code" href="circuit__file_8h.html#a09981b2d912d56374a48b1c810317b31">XOR_GATE</a>;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;            }</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (tmp == 1) {</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;                tmp2=fscanf(f, <span class="stringliteral">&quot;%d%d%d%s&quot;</span>, &amp;tmp, &amp;gates[4*i], &amp;gates[4*i+2], str);</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;                gates[4*i+3] = <a class="code" href="circuit__file_8h.html#ae656db884251f676e0fb6adcd7ed45f0">NOT_GATE</a>;</div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;            }</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;        }</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;        fclose(f);</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    }</div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="class_circuit_file.html#ada52e90d66d704eea410a9c508a4feb8">   40</a></span>&#160;    <a class="code" href="class_circuit_file.html#ada52e90d66d704eea410a9c508a4feb8">CircuitFile</a>(<span class="keyword">const</span> <a class="code" href="class_circuit_file.html">CircuitFile</a>&amp; cf) {</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;        num_gate = cf.<a class="code" href="class_circuit_file.html#a10b5634a0bf348c6e7abd49f866b43b6">num_gate</a>;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        num_wire = cf.<a class="code" href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">num_wire</a>;</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        n1 = cf.<a class="code" href="class_circuit_file.html#ac41e7dc99ea23f0ef45bf2181850bd2e">n1</a>;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        n2 = cf.<a class="code" href="class_circuit_file.html#a7a98a288b190df500d51a43c46c14e70">n2</a>;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        n3 = cf.<a class="code" href="class_circuit_file.html#ab38c383422b8a9948ce66d45721db41f">n3</a>;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;        gates = <span class="keyword">new</span> <span class="keywordtype">int</span>[num_gate*4];</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;        wires = <span class="keyword">new</span> <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>[<a class="code" href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">num_wire</a>];</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        memcpy(gates, cf.<a class="code" href="class_circuit_file.html#a7f15c2315f0af71b0cb040a655ce2ee2">gates</a>, num_gate*4*<span class="keyword">sizeof</span>(<span class="keywordtype">int</span>));</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        memcpy(wires, cf.<a class="code" href="class_circuit_file.html#a51b27ff92a688dee9dc1dc787d3c36a9">wires</a>, num_wire*<span class="keyword">sizeof</span>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>));    </div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;    }</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_circuit_file.html#a1cacc20e58df97788469b45ab429a331">   51</a></span>&#160;    <a class="code" href="class_circuit_file.html#a1cacc20e58df97788469b45ab429a331">~CircuitFile</a>(){</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="keyword">delete</span>[] <a class="code" href="class_circuit_file.html#a7f15c2315f0af71b0cb040a655ce2ee2">gates</a>;</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        <span class="keyword">delete</span>[] <a class="code" href="class_circuit_file.html#a51b27ff92a688dee9dc1dc787d3c36a9">wires</a>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    }</div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="class_circuit_file.html#a732687e82a730d9bfc7cc852dfaf986f">   55</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="class_circuit_file.html#a732687e82a730d9bfc7cc852dfaf986f">table_size</a>()<span class="keyword"> const</span>{</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;        <span class="keywordflow">return</span> num_gate*4;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    }</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="class_circuit_file.html#a096f0e05e7c97518b079b85891a42698">   59</a></span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_circuit_file.html#a096f0e05e7c97518b079b85891a42698">compute</a>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * out, <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * in1, <a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a> * in2) {</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;        memcpy(wires, in1, n1*<span class="keyword">sizeof</span>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>));</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        memcpy(wires+n1, in2, n2*<span class="keyword">sizeof</span>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>));</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;        <span class="keywordflow">for</span>(<span class="keywordtype">int</span> i = 0; i &lt; <a class="code" href="class_circuit_file.html#a10b5634a0bf348c6e7abd49f866b43b6">num_gate</a>; ++i) {</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;            <span class="keywordflow">if</span>(gates[4*i+3] == <a class="code" href="circuit__file_8h.html#a50994791b2cee95e74e65a30ad29dfb1">AND_GATE</a>) {</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;                wires[gates[4*i+2]] = <a class="code" href="backend_8cpp.html#a293f7f73b0f19aaf7e67212ddc526fed">local_gc</a>-&gt;<a class="code" href="class_garble_circuit.html#a8e13369857f50cfaaea6ffb7881becf7">gc_and</a>(</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;wires[gates[4*i]], wires[gates[4*i+1]]);</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;            }</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;            <span class="keywordflow">else</span> <span class="keywordflow">if</span> (gates[4*i+3] == <a class="code" href="circuit__file_8h.html#a09981b2d912d56374a48b1c810317b31">XOR_GATE</a>) {</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;                wires[gates[4*i+2]] = <a class="code" href="backend_8cpp.html#a293f7f73b0f19aaf7e67212ddc526fed">local_gc</a>-&gt;<a class="code" href="class_garble_circuit.html#af6f5fa0971a5782608201c5a7f897df0">gc_xor</a>(</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;wires[gates[4*i]], wires[gates[4*i+1]]);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            }</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;            <span class="keywordflow">else</span>  </div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;                wires[gates[4*i+2]] = <a class="code" href="backend_8cpp.html#a293f7f73b0f19aaf7e67212ddc526fed">local_gc</a>-&gt;<a class="code" href="class_garble_circuit.html#a0c044174fe239a3ccc65b0854e06fb5a">gc_not</a>(wires[gates[4*i]]);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;        }</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        memcpy(out, &amp;wires[num_wire-n3], n3*<span class="keyword">sizeof</span>(<a class="code" href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a>));</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;    }</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;};</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="preprocessor">#endif// CIRCUIT_FILE</span></div><div class="ttc" id="class_circuit_file_html_a7f15c2315f0af71b0cb040a655ce2ee2"><div class="ttname"><a href="class_circuit_file.html#a7f15c2315f0af71b0cb040a655ce2ee2">CircuitFile::gates</a></div><div class="ttdeci">int * gates</div><div class="ttdef"><b>Definition:</b> circuit_file.h:14</div></div>
<div class="ttc" id="class_circuit_file_html_a10b5634a0bf348c6e7abd49f866b43b6"><div class="ttname"><a href="class_circuit_file.html#a10b5634a0bf348c6e7abd49f866b43b6">CircuitFile::num_gate</a></div><div class="ttdeci">int num_gate</div><div class="ttdef"><b>Definition:</b> circuit_file.h:13</div></div>
<div class="ttc" id="class_circuit_file_html_a7ac52fd2934e5e70342762929492ba74"><div class="ttname"><a href="class_circuit_file.html#a7ac52fd2934e5e70342762929492ba74">CircuitFile::tmp</a></div><div class="ttdeci">int tmp</div><div class="ttdef"><b>Definition:</b> circuit_file.h:16</div></div>
<div class="ttc" id="class_circuit_file_html_ada52e90d66d704eea410a9c508a4feb8"><div class="ttname"><a href="class_circuit_file.html#ada52e90d66d704eea410a9c508a4feb8">CircuitFile::CircuitFile</a></div><div class="ttdeci">CircuitFile(const CircuitFile &amp;cf)</div><div class="ttdef"><b>Definition:</b> circuit_file.h:40</div></div>
<div class="ttc" id="class_circuit_file_html_a732687e82a730d9bfc7cc852dfaf986f"><div class="ttname"><a href="class_circuit_file.html#a732687e82a730d9bfc7cc852dfaf986f">CircuitFile::table_size</a></div><div class="ttdeci">int table_size() const</div><div class="ttdef"><b>Definition:</b> circuit_file.h:55</div></div>
<div class="ttc" id="class_circuit_file_html_a096f0e05e7c97518b079b85891a42698"><div class="ttname"><a href="class_circuit_file.html#a096f0e05e7c97518b079b85891a42698">CircuitFile::compute</a></div><div class="ttdeci">void compute(block *out, block *in1, block *in2)</div><div class="ttdef"><b>Definition:</b> circuit_file.h:59</div></div>
<div class="ttc" id="garble_2block_8h_html_a65abbf31b0a30290189cdb5059b5f785"><div class="ttname"><a href="garble_2block_8h.html#a65abbf31b0a30290189cdb5059b5f785">block</a></div><div class="ttdeci">__m128i block</div><div class="ttdef"><b>Definition:</b> block.h:8</div></div>
<div class="ttc" id="class_garble_circuit_html_af6f5fa0971a5782608201c5a7f897df0"><div class="ttname"><a href="class_garble_circuit.html#af6f5fa0971a5782608201c5a7f897df0">GarbleCircuit::gc_xor</a></div><div class="ttdeci">block gc_xor(const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:24</div></div>
<div class="ttc" id="circuit__file_8h_html_ae656db884251f676e0fb6adcd7ed45f0"><div class="ttname"><a href="circuit__file_8h.html#ae656db884251f676e0fb6adcd7ed45f0">NOT_GATE</a></div><div class="ttdeci">#define NOT_GATE</div><div class="ttdef"><b>Definition:</b> circuit_file.h:6</div></div>
<div class="ttc" id="class_circuit_file_html_aa40dbb192f113768a1da0c991d64a9e9"><div class="ttname"><a href="class_circuit_file.html#aa40dbb192f113768a1da0c991d64a9e9">CircuitFile::num_wire</a></div><div class="ttdeci">int num_wire</div><div class="ttdef"><b>Definition:</b> circuit_file.h:13</div></div>
<div class="ttc" id="class_circuit_file_html_ab38c383422b8a9948ce66d45721db41f"><div class="ttname"><a href="class_circuit_file.html#ab38c383422b8a9948ce66d45721db41f">CircuitFile::n3</a></div><div class="ttdeci">int n3</div><div class="ttdef"><b>Definition:</b> circuit_file.h:13</div></div>
<div class="ttc" id="class_circuit_file_html_a7a98a288b190df500d51a43c46c14e70"><div class="ttname"><a href="class_circuit_file.html#a7a98a288b190df500d51a43c46c14e70">CircuitFile::n2</a></div><div class="ttdeci">int n2</div><div class="ttdef"><b>Definition:</b> circuit_file.h:13</div></div>
<div class="ttc" id="class_circuit_file_html_ac41e7dc99ea23f0ef45bf2181850bd2e"><div class="ttname"><a href="class_circuit_file.html#ac41e7dc99ea23f0ef45bf2181850bd2e">CircuitFile::n1</a></div><div class="ttdeci">int n1</div><div class="ttdef"><b>Definition:</b> circuit_file.h:13</div></div>
<div class="ttc" id="class_circuit_file_html_a51b27ff92a688dee9dc1dc787d3c36a9"><div class="ttname"><a href="class_circuit_file.html#a51b27ff92a688dee9dc1dc787d3c36a9">CircuitFile::wires</a></div><div class="ttdeci">block * wires</div><div class="ttdef"><b>Definition:</b> circuit_file.h:15</div></div>
<div class="ttc" id="class_circuit_file_html_a1cacc20e58df97788469b45ab429a331"><div class="ttname"><a href="class_circuit_file.html#a1cacc20e58df97788469b45ab429a331">CircuitFile::~CircuitFile</a></div><div class="ttdeci">~CircuitFile()</div><div class="ttdef"><b>Definition:</b> circuit_file.h:51</div></div>
<div class="ttc" id="class_garble_circuit_html_a0c044174fe239a3ccc65b0854e06fb5a"><div class="ttname"><a href="class_garble_circuit.html#a0c044174fe239a3ccc65b0854e06fb5a">GarbleCircuit::gc_not</a></div><div class="ttdeci">block gc_not(const block &amp;a)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:27</div></div>
<div class="ttc" id="garble__circuit_8h_html"><div class="ttname"><a href="garble__circuit_8h.html">garble_circuit.h</a></div></div>
<div class="ttc" id="class_garble_circuit_html_a8e13369857f50cfaaea6ffb7881becf7"><div class="ttname"><a href="class_garble_circuit.html#a8e13369857f50cfaaea6ffb7881becf7">GarbleCircuit::gc_and</a></div><div class="ttdeci">block gc_and(const block &amp;a, const block &amp;b)</div><div class="ttdef"><b>Definition:</b> garble_circuit.h:21</div></div>
<div class="ttc" id="circuit__file_8h_html_a50994791b2cee95e74e65a30ad29dfb1"><div class="ttname"><a href="circuit__file_8h.html#a50994791b2cee95e74e65a30ad29dfb1">AND_GATE</a></div><div class="ttdeci">#define AND_GATE</div><div class="ttdef"><b>Definition:</b> circuit_file.h:4</div></div>
<div class="ttc" id="class_circuit_file_html_ac5f7775c1c30510261f6b8244f2bcb55"><div class="ttname"><a href="class_circuit_file.html#ac5f7775c1c30510261f6b8244f2bcb55">CircuitFile::tmp2</a></div><div class="ttdeci">int tmp2</div><div class="ttdef"><b>Definition:</b> circuit_file.h:16</div></div>
<div class="ttc" id="bit_8h_html"><div class="ttname"><a href="bit_8h.html">bit.h</a></div></div>
<div class="ttc" id="class_circuit_file_html_a9531355f85784d3cb07621619db1a25e"><div class="ttname"><a href="class_circuit_file.html#a9531355f85784d3cb07621619db1a25e">CircuitFile::CircuitFile</a></div><div class="ttdeci">CircuitFile(const char *file)</div><div class="ttdef"><b>Definition:</b> circuit_file.h:17</div></div>
<div class="ttc" id="backend_8h_html"><div class="ttname"><a href="backend_8h.html">backend.h</a></div></div>
<div class="ttc" id="circuit__file_8h_html_a09981b2d912d56374a48b1c810317b31"><div class="ttname"><a href="circuit__file_8h.html#a09981b2d912d56374a48b1c810317b31">XOR_GATE</a></div><div class="ttdeci">#define XOR_GATE</div><div class="ttdef"><b>Definition:</b> circuit_file.h:5</div></div>
<div class="ttc" id="backend_8cpp_html_a293f7f73b0f19aaf7e67212ddc526fed"><div class="ttname"><a href="backend_8cpp.html#a293f7f73b0f19aaf7e67212ddc526fed">local_gc</a></div><div class="ttdeci">GarbleCircuit * local_gc</div><div class="ttdef"><b>Definition:</b> backend.cpp:8</div></div>
<div class="ttc" id="class_circuit_file_html"><div class="ttname"><a href="class_circuit_file.html">CircuitFile</a></div><div class="ttdef"><b>Definition:</b> circuit_file.h:12</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_eec959d81771dc8b1a750b834e1341eb.html">emp-tool</a></li><li class="navelem"><a class="el" href="dir_2b4671b717884caf3b3fe5ce6896c1bb.html">circuits</a></li><li class="navelem"><a class="el" href="circuit__file_8h.html">circuit_file.h</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
